// C++ program to implement
// the above approach
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
#include <string_view>

// Driver code
int main()
{
	string str{ "Madhav_Mohan" };
	string_view str1{ str.data() };
	cout << str1 << endl;
	string_view str2{ str1.substr(6) };
	// string substr (size_t pos = 0, size_t len = npos) const;
	string_view str3{ str2 };
	cout << str3; // _Mohan
	return 0;
}

